import { RouteRecordRaw } from 'vue-router';
import routesList from '../test';

const routes: Array<RouteRecordRaw> = [
	{
		path: '/test',
		component: () => import('@/views/test_page/index.vue'),
		name: 'Test',
		children: [],
	},
];
for (const key in routesList) {
	routes[0].children!.push({
		name: routesList[key].name,
		path: routesList[key].path,
		component: (routesList[key]!.component as any).default,
	});
}
export default routes;
